<?php
//用户相关板块
\think\facade\Route::group("api/user",function (){
    //登录接口
    \think\facade\Route::post("login",'api/user.login/index');
})->allowCrossDomain();


//题库相关板块
\think\facade\Route::group("api/question",function (){
    //考试列表
    \think\facade\Route::get("examList",'api/question.exam/index');
    //报名用户，参与用户
    \think\facade\Route::get("examsignuser",'api/question.index/examsignuser');
    //用户考试报名接口
    \think\facade\Route::post("examsign",'api/question.index/sign');
})->allowCrossDomain();


//系统相关
\think\facade\Route::group("api/system",function (){
    //幻灯片列表
    \think\facade\Route::get("slidelist",'api/system.index/slide');
})->allowCrossDomain();


//上传相关板块
\think\facade\Route::group("api/upload",function (){
     //上传接口 post \ get \ put
    \think\facade\Route::rule('upyunupload', 'api/webupload.upload/upyunupload');

})->allowCrossDomain();